using System;
using System.Collections.Generic;
using System.Windows.Forms;
using SampleSupport;
using SampleQueries;
using System.IO;

namespace SampleQueries
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            List<SampleHarness> harnesses = new List<SampleHarness>();

            QuerySamples.EntitySQLSamples samples = new QuerySamples.EntitySQLSamples();
            harnesses.Add(samples);

            QuerySamples.LinqToEntitiesSamples linqToEntitiesSamples = new QuerySamples.LinqToEntitiesSamples();
            harnesses.Add(linqToEntitiesSamples);

            QuerySamples.BuilderMethodSamples osSamples = new QuerySamples.BuilderMethodSamples();
            harnesses.Add(osSamples);

            if (args.Length >= 1 && args[0] == "/runall") {
            }
            else {
                Application.EnableVisualStyles();
                
                using (SampleForm form = new SampleForm("Entity Framework Sample Query Explorer", harnesses))
                {
                    form.ShowDialog();
                }
            }
        }
    }
}